<template>
	<view class="content">
		<view class="personal nav_btn"  @click="handNav('personal')">
			<view class="personal_left">
				<u-icon name="account" size='40'></u-icon>
				<view class="account">
					个人账户

				</view>

			</view>
			<u-icon name="arrow-right" size="40"></u-icon>

		</view>
		<view class="enterprise nav_btn" @click="handNav('company')">
			<view class="personal_left">
				<u-icon name="home" size='40'></u-icon>
				<view class="account">
					公司账户

				</view>

			</view>
			<u-icon name="arrow-right" size="40"></u-icon>
		</view>

	</view>
</template>

<script>
	export default {
		data() {
			return {
				title: 'Hello'
			}
		},
		onLoad() {

		},
		methods: {
			handNav(type) {
				switch (type) {
					case 'personal':
					uni.navigateTo({
						url: '../personal/personal'
					})
						break;
					case 'company':
						uni.navigateTo({
							url: '../company/company'
						})
						break
					default:
						break;
				}

			}
		}
	}
</script>

<style lang="scss">
	page {
		background-color: #f7f7f7;
	}

	.content {
		padding: 60rpx;
		box-sizing: border-box;

		.personal {
			margin-top: 120rpx;
			margin-bottom: 50rpx;
		}

		.nav_btn {
			width: 100%;
			height: 160rpx;
			border: 1rpx solid #E4E7ED;
			border-radius: 12rpx;
			background-color: #fff;
			display: flex;
			padding: 60rpx;
			box-sizing: border-box;
			align-items: center;
			justify-content: space-between;

			.personal_left {
				display: flex;
				align-items: center;

				.account {
					font-size: 36rpx;
					margin-left: 40rpx;
				}
			}
		}
	}

	.logo {
		height: 200rpx;
		width: 200rpx;
		margin-top: 200rpx;
		margin-left: auto;
		margin-right: auto;
		margin-bottom: 50rpx;
	}

	.text-area {
		display: flex;
		justify-content: center;
	}

	.title {
		font-size: 36rpx;
		color: #8f8f94;
	}
</style>
